﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CategoryPage_Add.aspx.cs" MasterPageFile="/Admin/MasterPage.master" Inherits="Admin_Form_CategoryPage_Add" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
    <telerik:RadWindowManager runat="server" ID="window1" >
        <Windows>
             <telerik:RadWindow runat="server" Width="400px" Height="400px" VisibleStatusbar="false"
                NavigateUrl="FileManager.aspx" ID="ExplorerWindow" Modal="true" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

    <input type="hidden" id="txtCategoryPageID" runat="server" />
    <fieldset>
    <legend style="padding: 10px 20px 10px">
            <h3 style="color: #3333FF; font-size:large">QUẢN TRỊ TRANG NHÓM </h3></legend>
  <div style="text-align:center; font-size:larger">
         <asp:Label runat="server" CssClass="AdminMessage" ID="lblMessage"> </asp:Label></div>
    <table style="vertical-align:top;" cellpadding="5">
        <tr valign="top">
            <td>
                <table cellpadding="5">
                   <tr>
                        <td>Tên Trang</td>
                        <td><asp:TextBox CssClass="AdminTextbox" runat="server" ID="txtCategoryPageName"></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="require1" ControlToValidate="txtCategoryPageName"></asp:RequiredFieldValidator></td>
                    </tr>
                    
                    
                    <tr style="display:none">
                        <td>Ảnh Đại Diện</td>
                        <td>
                            <asp:TextBox CssClass="AdminTextbox" ID="txtCategoryPageImage" runat="server"></asp:TextBox>
                            <asp:Button ID="selectFile" OnClientClick="openRadWindow('FileManager.aspx?control=txtCategoryPageImage','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                        </td>
                        
                    </tr>

                    <tr>
                        <td>
                            Meta Keyword
                        </td>
                        <td>
                            <asp:TextBox CssClass="AdminTextbox" ID="txtMetaKeyword" runat="server"></asp:TextBox>
                        </td>
                       
                    </tr>
                    
                    <tr>
                        <td>Trang Cha</td>
                        <td>
                            <telerik:RadComboBox CausesValidation="false"  CssClass="AdminList" ID="cboCategoryPage" DataTextField="FunctionPageName" DataValueField="FunctionPageID" runat="server">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    
                     <tr>
                        <td>Hiển Thị</td>
                        <td>
                            <asp:CheckBox CssClass="AdminTextbox" ID="chkIsVisible" runat="server" />
                        </td>
                       
                    </tr>
                    
                    <tr runat="server" id="trCache" visible="false">
                        <td>Cache: </td>
                        <td>
                            <asp:CheckBox ID="chkIsCache" runat="server" />
                        </td>
                        
                    </tr>
                    
                </table>
            </td>
            <td>
                <table cellpadding="5" >
                    <tr>
                        <td>Tiêu đề trang</td>
                        <td>
                            <asp:TextBox CssClass="AdminTextbox" ID="txtCategoryPageTitle" runat="server" Height="22px"></asp:TextBox>
                        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ErrorMessage="RequiredFieldValidator" 
                                ControlToValidate="txtCategoryPageTitle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    
                     <tr style="display:none">
                        <td>Icon</td>
                        <td>
                            <asp:TextBox CssClass="AdminTextbox" ID="txtCategoryPageIcon" runat="server"></asp:TextBox>
                        </td>
                        
                    </tr>
                    
                    <tr>
                        <td>
                            Meta Description
                        </td>
                        <td>
                            <asp:TextBox CssClass="AdminTextbox" ID="txtMetaDescription" runat="server"></asp:TextBox>
                        </td>
                        
                    </tr>
                    
                    <tr runat="server" id="trNavigate">
                        <td colspan="2">
                            <asp:RadioButtonList RepeatColumns="2" runat="server" ID="rblControlPath">
                                <asp:ListItem Value="1" Text="Điều Hướng Theo Tên"></asp:ListItem>
                                <asp:ListItem Value="0" Text="Điều Hướng Theo Trang Nhóm"></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    
                    <tr style="display:none">
                        <td>Cho Phép Xóa</td>
                        <td>
                            <asp:CheckBox ID="chkIsAllowDelete" runat="server" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            Thứ Tự Hiển Thị
                        </td>
                        <td>
                            <telerik:RadNumericTextBox ID="txtViewOrder" runat="server">
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator Display="Dynamic" ControlToValidate="txtViewOrder" ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bạn Phải Nhập Thứ Tự Hiển Thị"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    
                    <tr runat="server" id="trCacheTime" visible="false">
                        <td>
                           Thời Gian Cache
                        </td>
                        <td>
                            <asp:TextBox Text="0" ID="txtCacheTime" runat="server"></asp:TextBox>
                        </td>
                        
                    </tr>
                </table>
            </td>
        </tr>
        <tr style="display:none">
            <td colspan="2">
                <table cellpadding="5">
                    <tr>
                        <td>Mô Tả Trang</td>
                        <td>
                            <asp:TextBox Width="500" CssClass="AdminTextbox" TextMode="MultiLine" Rows="5" ID="txtCategoryPageAbstract" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table>
                    <tr>
                       <td>Nội Dung Trang</td>
                        <td>
                            <telerik:RadEditor ID="txtCategoryPageContent" runat="server">
                            </telerik:RadEditor>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        
        <tr runat="server" id="trProperties" visible="false">
            <td colspan="2">
                <asp:CheckBox Text="Trang Mới" ID="chkIsNew" runat="server" /> &nbsp;&nbsp;
                <asp:CheckBox Text="Trang Hot" ID="chkIsHot" runat="server" /> &nbsp;&nbsp;
                <asp:CheckBox Text="Trang Nổi Bật" ID="chkIsTypical" runat="server" /> &nbsp;&nbsp;
            </td>
        </tr>
                    
        <tr align="center">
            <td colspan="2">
                <asp:Button CssClass="AdminButton" runat="server" ID="btnCreate" OnClick="btnCreate_Click" Text="Thêm Mới" />
                <asp:Button CssClass="AdminButton" runat="server" ID="btnReset" OnClick="btnReset_Click" CausesValidation="false" Text="Quay Lại" />
            </td>
        </tr>
    </table>    
    </table>
    
  </fieldset>
</asp:Content>  
